import logging
def log_set():
    logging.basicConfig(level=logging.DEBUG,format='%(filename)s_%(asctime)s_%(message)s',
                        filename='log.log',filemode='a+')